package com.test.nnooolwdeaer.bean_wooden.user_info_wooden;

import com.test.nnooolwdeaer.util_wooden.StringUtil_wooden;
import com.google.gson.Gson;

import org.json.JSONObject;

/**
 * 用户登录信息，只在用户手动登录时获取，自动登录不获取
 */
public class OrderRepaySDK_wooden {

    private static class Inner_wooden {
        private static OrderRepaySDK_wooden instance_wooden = new OrderRepaySDK_wooden();
    }

    private OrderRepaySDK_wooden(){}

    public static OrderRepaySDK_wooden getInstance(){
        return Inner_wooden.instance_wooden;
    }

    private String accessCode,pubKey;

    public static void parse_wooden(JSONObject objJson){
        Inner_wooden.instance_wooden = new Gson().fromJson(objJson.toString(), OrderRepaySDK_wooden.class);
    }

    public String getAccessCode_wooden() {
        return StringUtil_wooden.getSafeString_wooden(accessCode);
    }

    public String getPubKey_wooden() {
        return StringUtil_wooden.getSafeString_wooden(pubKey);
    }
}
